package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.system.domain.dto.ConsumerDto;
import com.ruoyi.system.domain.dto.ParkingPaymentDto;
import com.ruoyi.system.service.ParkingPaymentService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/payment")
public class PaymentController {
    @Resource
    ParkingPaymentService parkingPaymentService;
    @PostMapping("/list")
    public AjaxResult list(@RequestBody ParkingPaymentDto parkingPaymentDto) {
        return parkingPaymentService.ParkingPaymentList(parkingPaymentDto);
    }
    @PostMapping("/listapp")
    public AjaxResult listapp(@RequestBody ParkingPaymentDto parkingPaymentDto) {
        return parkingPaymentService.ParkingPaymentListApp(parkingPaymentDto);
    }

}
